from random import *
n = eval(input("请输入一个0~100之间的数:"))
j = randint(0,100)
N = 0
while N <= 100:
      N += 1
      if n < j:
            print("遗憾，太小了")
      elif n == j:
            print("预测{}次，你猜中了".format(N))
            break
      else:
            print("遗憾，太大了")
      n = eval(input("请输入一个0~100之间的数:"))  
      




